﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Department_list.aspx.cs"
    Inherits="TRPOP.CRM.Web.Department_list" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>部门列表</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <script src="../../Scripts/utils.js" type="text/javascript"></script>
    <script src="../../Scripts/jquery.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="welcomBox">
        <div class=" welcomCont listPadding">
            <p class=" mb5 c_grey postion">
                您的当前位置：<a href="../welcome.aspx" title="首页">首页</a> > <span title="部门管理">部门管理</span></p>
            <div class="listTit">
                <div class=" fl listTit_l">
                </div>
                <div class=" fl listTit_c">
                    <h4 class="fl f14 fb">
                        部门管理</h4>
                    <span class="f12 fb"><a href="Department_save.aspx" title="新增部门">新增部门</a></span>
                </div>
                <div class=" fr listTit_r">
                </div>
            </div>
            <div class="listCon listCon_padding">
                <table width="100%" border="0" class="tableBox">
                    <tr class="f12 tableTit">
                        <th width="5%" class="tc fb br1ce">
                            编号
                        </th>
                        <th width="10%" class="tc fb br1ce">
                            编码
                        </th>
                        <th width="60%" class="tc fb br1ce">
                            名称
                        </th>
                        <th class="tc fb br1ff">
                            操作
                        </th>
                    </tr>
                </table>
                <div style="height: 550px; overflow: auto;">
                    <table width="100%" border="0" class="tableBox">
                        <tbody id="tab">
                            <asp:Repeater runat="server" ID="rptList">
                                <ItemTemplate>
                                    <tr class="f12">
                                        <td class="tc" width="5%">
                                            <%#Container.ItemIndex+1 %>
                                        </td>
                                        <td class="tc" width="10%">
                                            <%#Eval("nvcDepartmentCode")%>
                                        </td>
                                        <td class="tl" width="60%">
                                            <%#Eval("nvcDepartmentName")%>
                                        </td>
                                        <td class="tc pr10 c_blue2 br1ff">
                                            <a class="mr20 modifyIco" href="Department_save.aspx?id=<%#Eval("iDepartmentID")%>"
                                                title="修改">修改</a>
                                            <asp:LinkButton ID="lbtnDelete" Enabled='<%#Eval("iDepartmentID").ToString()=="1"?false:true%>'
                                                runat="server" Text="删除" CommandArgument='<%#Eval("iDepartmentID") %>' OnClick="lbtnDelete_Click"
                                                OnClientClick="return confirm('你确定要删除吗？');" class="mr20 deleteIco"></asp:LinkButton>
                                        </td>
                                    </tr>
                                </ItemTemplate>
                            </asp:Repeater>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
    </form>
</body>
</html>
